package com.kmxd.ams.core.exception;

import lombok.Data;

/**
 * 自定义异常
 *
 * @author admin
 */
public class CustomException extends RuntimeException {

  private Integer code;
  private String message;

  public CustomException(String message) {
    this.message = message;
  }

  public Integer getCode() {
    return code;
  }

  public void setCode(Integer code) {
    this.code = code;
  }

  @Override
  public String getMessage() {
    return message;
  }

  public void setMessage(String message) {
    this.message = message;
  }
}
